/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-03
 * Time:10:33
 */
public abstract class Animal {
     String name;
     int weight;
    public Animal()
    {}
    public Animal(String name,int weight)
    {
        this.name=name;
        this.weight=weight;
    }
    public void showinfo()
    {
        System.out.println("名称："+name+"\n重量："+weight);
    }
    public abstract void move();
}

